package com.xnck.example.jertest.util;


public class StrUtil extends com.xiaoleilu.hutool.StrUtil {

    public static String arrayToStrWithComma(String[] needChange) {
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < needChange.length; i++) {
            sb.append(needChange[i]);
            if ((i + 1) != needChange.length) {
                sb.append(",");
            }
        }
        return sb.toString();
    }

    public static boolean isHasString(String[] strs, String str){
        for (String temp : strs){
            if (temp.equals(str)){
                return true;
            }
        }
        return false;
    }
}
